This "standard starter" is the recommended implementation for RedwoodSDK. You get a Typescript project with:
npx create-rwsdk my-project-name
cd my-project-name
pnpm install
pnpm dev
Point your browser to the URL displayed in the terminal (e.g. http://localhost:5173/). You should see a "Hello World" message in your browser.
Within your project's wrangler.jsonc:
Replace the __change_me__ placeholders with a name for your application
Create a new D1 database:
npx wrangler d1 create my-project-db
Copy the database ID provided and paste it into your project's wrangler.jsonc file:
{
"d1_databases": [
{
"binding": "DB",
"database_name": "my-project-db",
"database_id": "your-database-id",
},
],
}
For authentication setup and configuration, including optional bot protection, see the Authentication Documentation.